﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Rose.Helper;

namespace Rose.Controllers
{
    public class MovieController : Controller
    {
        //
        // GET: /Movie/

        public ActionResult Index(int cameraId=1821)
        {
            MovieHelpModel help=new MovieHelpModel();

            ViewData["cameraId"] = new ListHelpModel().GetWuHanCamera(cameraId);
            string serverPath=Server.MapPath("/MovieImages");

            return View(help.GetTodayMovie(cameraId,serverPath));
        }


        public ActionResult SelectCamera(int cameraId)
        {
            return RedirectToAction("Index", "Movie", new { cameraId = cameraId });
        }

    }
}
